package com.example.qggoodsconsumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

@FeignClient(name = "qgorderprovider")
public interface OrderFeign {

    @RequestMapping("/addOrder")
    public int addOrder(@RequestParam Map map);

    @RequestMapping("/getOrdersByUid")
    public List<Map> getOrdersByUid(@RequestParam("userId") int userId);

}
